package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品相似度实体类
 */
@Data
@Accessors(chain = true)
@TableName("product_similarity")
@ApiModel(value = "商品相似度实体", description = "商品相似度信息")
public class ProductSimilarity {

    @ApiModelProperty("相似度ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品1")
    private Long productId1;

    @ApiModelProperty("商品2")
    private Long productId2;

    @ApiModelProperty("相似度")
    private BigDecimal similarity;

    @ApiModelProperty("相似类型(内容相似、协同过滤、混合)")
    private String similarityType;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
} 